{
    type Paras<T extends (...args: any[]) => any> = T extends (...args: infer A) => any ? A : never;

    type testParameters = Paras<() => string>;

    type testParameters2 = Paras<(name: string, age: number) => string>;
}